package com.heima.comment.pojos;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @AuthOr: Anna Zhang
 * @Date:2024/8/22-11:50
 * @ClassName:com.heima.comment.pojos
 * @Description:
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document("ap_comment_repay")
public class CommentRepay {
    /**
     * 主键id
     */
    private String id;

    /**
     * 评论人id
     */
    private Integer authorId;

    /**
     * 评论人
     */
    private String authorName;

    @ApiModelProperty("评论Id")
    @NotBlank(message = "评论Id不能为空")
    private String commentId;

    @ApiModelProperty("评论内容")
    private String content;

    /**
     * 点赞数
     */
    private Integer likes;
    /**
     * 回复数
     */
    private Integer reply;
    /**
     * 不晓得是啥
     */
    private Integer flag;

    /**
     * 创建时间
     */
    private Date createdTime;
}
